﻿using System;
using ZHDJ.Data.Models.Common;
using ZHDJ.WebPage.Master;

namespace ZHDJ.Web.Portal.HistoryToday
{
    public partial class HistoryTodayMorePage : UseMorePageMasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                LoadData();
            }
        }

        private void LoadData()
        {
            lbMonth.Text = DateTime.Now.Month.ToString();
            lbDate.Text = DateTime.Now.Day.ToString();

            rpHistoryToday.DataSource = PartyHistoryToday.GetPortalData(DateTime.Now.Month, DateTime.Now.Day);
            rpHistoryToday.DataBind();
        }
    }
}